#!/usr/bin/env python
#-*- coding:utf-8 -*-
'''
   getFileLines.py
   autor wenzhui
'''
fname = raw_input('Enter a file name >> ')
with open(fname, 'r') as f:
    lines = f.readlines()
    rows = len(lines)
    print ("The file's total rows is %d " % (rows))
